package cn.wolfcode.luowowo.dest.service.impl;

import cn.wolfcode.luowowo.ticket.domain.Dest;
import cn.wolfcode.luowowo.ticket.mapper.DestMapper;
import cn.wolfcode.luowowo.ticket.service.IDestService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class DestServiceImpl implements IDestService {
    @Autowired
    private DestMapper destMapper;


    @Override
    public List<Dest> selectAll() {
        return destMapper.selectAll();
    }

    @Override
    public Dest get(Long id) {
        return destMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Long> getSubjectIdsByDestId(Long ajaxDestId) {
        return destMapper.getSubjectIdsByDestId(ajaxDestId);
    }
}
